import React from 'react';
import { NavLink } from 'react-router-dom'
import useMyRedecer from '../../reducer'

const Index = () => {
    const [state] = useMyRedecer()
    return (
        <div>
            home
            <hr />
            <NavLink to="/city">{state.city}</NavLink>
        </div>
    );
}

export default Index;
